import { GetOrdersStatic } from "@/api/order";
export default{
    state:{
        "ordersStatic":[],
    },
    mutations:{
        setOrdersStatic(state,data){
            state.ordersStatic=data
        }
    },
    actions:{
        getOrdersStatic(context){
            GetOrdersStatic()
            .then(res=>{
                if(res.data&&res.data.code==0){
                    context.commit("setOrdersStatic",res.data.list)
                }
            })
        }
    },
}